<!-- search area   -->
<div class="row searchLineWrap">
	<form class="form-horizontal" method="post"
		action="${cxt!}/message/emailConfig/list" id="searchForm">
		<div class="col-md-12">
			<div class="row">
				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-5 control-label">${_res["emailConfig.serviceName"]}</label>
						<div class="col-md-7">
							<input type="text" class="form-control" name="emailConfig.l_name" placeholder="${_res['emailConfig.serviceName']}" value="${paramMap['emailConfig.l_name']}" />
						</div>
					</div>
				</div>

				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-5 control-label">${_res["emailConfig.status"]}</label>
						<div class="col-md-7">
							<#dict type="select" name="emailConfig.f_status" dictCode="COMMON_STATUS" value="${paramMap['emailConfig.f_status']}" />
						</div>
					</div>
				</div>

				<div class="col-md-2">
					<div class="form-group">
						<% if(hasPrivilegeUrl("emailConfigList")){ %>
							<button type="button" class="btn btn-primary pull-right" onclick="ajaxForm('content','searchForm')">
							<i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}
						</button>
						<% } %>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>
<!-- search area end  -->
<div class="row searchLineWrap">
	<% if(hasPrivilegeUrl("emailConfigAdd")){ %>
	<p>
		<a href="javascript:void(0);" onClick="ajaxContent('/message/emailConfig/add/a');" class="btn btn-primary pull-left">${_res["emailConfig.add"]}</a>
		<div class="clearfix"></div>
	</p>
	<% } %>
	<table class="table table-bordered">
		<thead>
			<tr>
				<th>${_res["emailConfig.serviceName"]}</th>
				<th>${_res["emailConfig.serviceAddress"]}</th>
				<th>${_res["emailConfig.account"]}</th>
				<th>${_res["emailConfig.numberOfTimesToSend"]}</th>
				<th>${_res["emailConfig.status"]}</th>
				<th>${_res["system.createtime"]}</th>
				<th>${_res["system.operator"]}</th>
			</tr>
		</thead>
		<tbody>
			<% for(item in splitPage.list!){ %>
			<tr >
				<td>${item.name!}</td>
				<td>${item.serverip!}</td>
				<td>${item.accountno!}</td>
				<td>${item.sendnum!}</td>
				<td><#dict type="lable" value='${item.status!}' dictCode="COMMON_STATUS"/></td>
				<td>${item.createtime!,dateFormat="yyyy-MM-dd HH:mm"}</td>
				<td>
					<% if(hasPrivilegeUrl("emailConfigView")){ %>
					<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/message/emailConfig/view/${item.id!}');">${_res["system.view"]}</button>
					<% } %> 
					<% if(hasPrivilegeUrl("emailConfigEdit")){ %>
					<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/message/emailConfig/update/e-${item.id!}')">${_res["system.edit"]}</button>
					<% } %> 
					<% if(hasPrivilegeUrl("emailConfigDelete")){ %>
					<button type="button" class="btn btn-sm btn-link" onClick="ajaxDelete('/message/emailConfig/delete/${item.id!}')">${_res["system.delete"]}</button>
					<% } %>
				</td>
			</tr>
			<% } %>
		</tbody>
	</table>
	<div id="splitPageDiv"><#page formId="searchForm" /></div>
	<#nav />
</div>